package com.example.springbootstarterhello.controller;

import com.example.customconfig.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ljw
 * @description
 * @date 2021/10/13 7:30
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @Autowired
    HelloService helloService;

    @GetMapping("")
    public String index() {
        return helloService.sayHello();
    }
}
